﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <br />
    &nbsp;<br /><br />
<table width="300">
<tr>
<th style="background-color: mediumseagreen;" colspan="2">乘机人数</th>
</tr>
<tr>
<td>成人：</td><td>
    <asp:DropDownList ID="lstAdtCount" runat="server">
        <asp:ListItem>0</asp:ListItem>
        <asp:ListItem Selected=True>1</asp:ListItem>
        <asp:ListItem>2</asp:ListItem>
        <asp:ListItem Value="3"></asp:ListItem>
        <asp:ListItem Value="4"></asp:ListItem>
        <asp:ListItem Value="5"></asp:ListItem>
        <asp:ListItem Value="6"></asp:ListItem>
        <asp:ListItem>7</asp:ListItem>
        <asp:ListItem>8</asp:ListItem>
        <asp:ListItem>9</asp:ListItem>
        <asp:ListItem>10</asp:ListItem>
        <asp:ListItem>11</asp:ListItem>
        <asp:ListItem>12</asp:ListItem>
        <asp:ListItem>13</asp:ListItem>
        <asp:ListItem>14</asp:ListItem>
        <asp:ListItem>15</asp:ListItem>
    </asp:DropDownList></td>
</tr>
<tr>
<td>儿童：</td><td>
    <asp:DropDownList ID="lstChdCount" runat="server">
        <asp:ListItem Selected=True>0</asp:ListItem>
        <asp:ListItem>1</asp:ListItem>
        <asp:ListItem>2</asp:ListItem>
        <asp:ListItem>3</asp:ListItem>
        <asp:ListItem>4</asp:ListItem>
        <asp:ListItem>5</asp:ListItem>
        <asp:ListItem>6</asp:ListItem>
        <asp:ListItem>7</asp:ListItem>
        <asp:ListItem>8</asp:ListItem>
        <asp:ListItem>9</asp:ListItem>
        <asp:ListItem>10</asp:ListItem>
        <asp:ListItem>11</asp:ListItem>
        <asp:ListItem>12</asp:ListItem>
        <asp:ListItem>13</asp:ListItem>
        <asp:ListItem>14</asp:ListItem>
        <asp:ListItem>15</asp:ListItem>
    </asp:DropDownList></td>
</tr>
<tr>
<td>婴儿：</td><td>
    <asp:DropDownList ID="lstInfCount" runat="server">
        <asp:ListItem Selected=True>0</asp:ListItem>
        <asp:ListItem>1</asp:ListItem>
        <asp:ListItem>2</asp:ListItem>
        <asp:ListItem>3</asp:ListItem>
        <asp:ListItem>4</asp:ListItem>
        <asp:ListItem>5</asp:ListItem>
        <asp:ListItem>6</asp:ListItem>
        <asp:ListItem>7</asp:ListItem>
        <asp:ListItem>8</asp:ListItem>
        <asp:ListItem>9</asp:ListItem>
        <asp:ListItem>10</asp:ListItem>
        <asp:ListItem>11</asp:ListItem>
        <asp:ListItem>12</asp:ListItem>
        <asp:ListItem>13</asp:ListItem>
        <asp:ListItem>14</asp:ListItem>
        <asp:ListItem>15</asp:ListItem>
    </asp:DropDownList></td>
</tr>
<tr>
<th colspan="2" style="background-color: mediumseagreen;">旅程计划</th>
</tr>

<tr>
<td>
    乘机次数：</td><td>
    <asp:DropDownList ID="lstTripCount" runat="server" AutoPostBack="True" OnSelectedIndexChanged="lstTipsCount_SelectedIndexChanged">
        <asp:ListItem Selected="True">1</asp:ListItem>
        <asp:ListItem>2</asp:ListItem>
        <asp:ListItem>3</asp:ListItem>
    </asp:DropDownList></td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td>
    旅程路线</td><td>乘机日期</td>
</tr>
<tr>
<td>
    <asp:Label ID="lblSn1" runat="server" Text="1."></asp:Label>
    <asp:DropDownList ID="lstOriCity1" runat="server" DataSourceID="sqlCities" DataTextField="name" DataValueField="code">
    </asp:DropDownList>&nbsp;<asp:DropDownList ID="lstDesCity1" runat="server" DataSourceID="sqlCities" DataTextField="name" DataValueField="code">
    </asp:DropDownList></td><td><asp:TextBox ID="txtFltDate1" runat="server" Width="100px"></asp:TextBox></td>
</tr>
<tr>
<td>
    <asp:Label ID="lblSn2" runat="server" Text="2." Visible="False"></asp:Label>
    <asp:DropDownList ID="lstOriCity2" runat="server" DataSourceID="sqlCities" DataTextField="name" DataValueField="code" Visible="False">
    </asp:DropDownList>&nbsp;<asp:DropDownList ID="lstDesCity2" runat="server" DataSourceID="sqlCities" DataTextField="name" DataValueField="code" Visible="False">
    </asp:DropDownList></td><td><asp:TextBox ID="txtFltDate2" runat="server" Visible="False" Width="100px"></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label ID="lblSn3" runat="server" Text="3." Visible="False"></asp:Label>
    <asp:DropDownList ID="lstOriCity3" runat="server" DataSourceID="sqlCities" DataTextField="name" DataValueField="code" Visible="False">
    </asp:DropDownList>&nbsp;<asp:DropDownList ID="lstDesCity3" runat="server" DataSourceID="sqlCities" DataTextField="name" DataValueField="code" Visible="False">
    </asp:DropDownList></td><td><asp:TextBox ID="txtFltDate3" runat="server" Visible="False" Width="100px"></asp:TextBox></td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td>
    <asp:Image ID="Image1" runat="server" ImageUrl="img_chk.aspx" /></td><td>
    <asp:TextBox ID="txtChkCode" runat="server" Width="100px" MaxLength="6"></asp:TextBox></td></tr>
<tr>
<td colspan="2" style="background-color: mediumseagreen;">
    <asp:Button ID="btnQuery" runat="server" Text="航班优先查询" 
        OnClick="btnQuery_Click" />
    <asp:Button ID="butQFare" runat="server" Text="票价优先查询..." />
    <asp:Button ID="btnQueryOld" runat="server" onclick="btnQueryOld_Click" 
        Text="Query-old" Enabled="False" />
    </td>
</tr>
<!--tr>
<td colspan="2" style="background-color: mediumseagreen;">&nbsp;</td>
</tr-->
</table>
    <asp:Label ID="lblError" runat="server" CssClass="message"></asp:Label><br />
    <asp:SqlDataSource ID="sqlCities" runat="server" ConnectionString="<%$ ConnectionStrings:DB %>"
        SelectCommand="sp_get_city_names" SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:Parameter DefaultValue="2" Name="lang" Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>

